let baseUrl="https://cnodejs.org/api/v1";
export default function request(params){
	uni.showLoading({
		title:"加载中"
	})
	return new Promise((resolve,reject)=>{
		uni.request({
			...params,
			url:baseUrl+params.url,
			success(res) {
				resolve(res)
				
			},fail(err){
				reject(err)
			},complete() {
				uni.hideLoading()
			}
			
		})
		
	})
	
}